 |
|
|
|
|
Returning a Value from the MsgBox Function |
|
|
|
| |
 |
|
|
|
|
Demonstrating the MsgBox Function |
|
|
|
| |
 |
|
|
|
|
Getting Information from the User |
|
|
|
| |
 |
|
|
|
|
Setting Up the InputBox Function |
|
|
|
| |
 |
|
|
|
|
Values Returned by InputBox |
|
|
|
| |
 |
|
|
|
|
Using Built-In Dialog Boxes |
|
|
|
| |
 |
|
|
|
|
General Usage of the CommonDialog Control |
|
|
|
| |
 |
|
|
|
|
Testing the CommonDialog Control |
|
|
|
| |
 |
|
|
|
|
The File Dialog Boxes |
|
|
|
| |
 |
|
|
|
|
The Font Dialog Box |
|
|
|
| |
 |
|
|
|
|
The Color Dialog Box |
|
|
|
| |
 |
|
|
|
|
The Print Dialog Box |
|
|
|
| |
 |
|
|
|
|
The Help Dialog Box |
|
|
|
| |
 |
|
|
|
|
Creating Your Own Dialog Boxes |
|
|
|
| |
 |
|
|
|
|
Creating a Custom Dialog Box |
|
|
|
| |
 |
|
|
|
|
Using Form Templates for Other Dialog Boxes |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
8
Using Variables and Constants to Store Information |
|
|
|
| |
 |
|
|
|
|
Introduction to Variables |
|
|
|
| |
 |
|
|
|
|
Naming Variables |
|
|
|
| |
 |
|
|
|
|
Types of Variables |
|
|
|
| |
 |
|
|
|
|
Variable Declarations |
|
|
|
| |
 |
|
|
|
|
Explicit Declaration |
|
|
|
| |
 |
|
|
|
|
Implicit Declaration |
|
|
|
| |
 |
|
|
|
|
Fixed-Length Strings |
|
|
|
| |
 |
|
|
|
|
Variable Arrays |
|
|
|
| |
 |
|
|
|
|
Determining Where a Variable Can Be Used |
|
|
|
| |
 |
|
|
|
|
Creating Variables That Are Available Everywhere |
|
|
|
| |
 |
|
|
|
|
Keeping a Variable Local |
|
|
|
| |
 |
|
|
|
|
Using Static Variables |
|
|
|
| |
 |
|
|
|
|
Using the Option Explicit Statement |
|
|
|
| |
 |
|
|
|
|
What's Different About Constants |
|
|
|
| |
 |
|
|
|
|
How to Use Constants |
|
|
|
| |
 |
|
|
|
|
Constants That Visual Basic Supplies |
|
|
|
| |
 |
|
|
|
|
Creating Your Own Constants |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
9
Visual Basic Programming Fundamentals |
|
|
|
| |
 |
|
|
|
|
Writing Statements |
|
|
|
| |
 |
|
|
|
|
Using Assignment Statements |
|
|
|
| |
 |
|
|
|
|
Using Math Operations |
|
|
|
| |
 |
|
|
|
|
Addition and Subtraction |
|
|
|
| |
 |
|
|
|
|
Multiplication and Division |
|
|
|
| |
 |
|
|
|
|
Exponentiation |
|
|
|
| |
 |
|
|
|
|
Operator Precedence |
|
|
|
| |
 |
|
|
|
|
Working with Strings |
|
|
|
| |
 |
|
|
|
|
String Concatenation |
|
|
|
| |
 |
|
|
|
|
Determining the Length of the String |
|
|
|
| |
 |
|
|
|
|
Changing the Case of a String |
|
|
|
| |
 |
|
|
|
|
Searching a String |
|
|
|
| |
 |
|
|
|
|
Extracting Pieces of a String |
|
|
|
| |
 |
|
|
|
|
Getting Rid of Spaces |
|
|
|
| |
 |
|
|
|
|
Replacing Characters in a String |
|
|
|
| |
 |
|
|
|
|
Working with Specific Characters |
|
|
|
| |
 |
|
|
|
|
Strings and Numbers |
|
|
|
| |
 |
|
|
|
|
Formatting Results |
|
|
|
| |
 |
|
|
|
|
Specific Formatting Functions |
|
|
|
| |
 |
|
|
|
|
Using the Format Function |
|
|
|
| |
 |
|
|
|
|
Manipulating Date Values |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
10
Controlling the Flow of Your Program Code |
|
|
|
| |
 |
|
|
|
|
Making Decisions in Your Program |
|
|
|
| |
 |
|
|
|
|
Using the If Statement |
|
|
|
| |
 |
|
|
|
|
Working with the False Condition |
|
|
|
| |
 |
|
|
|
|
Working with Multiple If Statements |
|
|
|
| |
 |
|
|
|
|
Using Select Case |
|
|
|
| |